class Person {
    // 构造器 写属性的方法  
    // 一个类只有1个构造器 
    constructor(name,weight){
        this.name = name;
        this.weight = weight;
        this.info(); //直接调用方法
    }

    running(){
        this.weight -= 0.5;
    }

    eating(){
        this.weight +=1;
    }

    info(){
        return `姓名${this.name},体重${this.weight}`
    }


}

// new Person('小明','70kg');